package com.ldy.core.service;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ldy.core.entity.BaseUser;

public interface BaseUserService {

	Page<BaseUser> selectPage(int current, int size, String username, String nickname);
	
	BaseUser selectByUsername(String username);
	
	void saveOrUpdate(BaseUser user);

	BaseUser login(String username, String password);

	void register(BaseUser user);

	void updateUserStatus(String id);
	
	void update(BaseUser user);

	BaseUser selectById(String userId);

	List<BaseUser> selectList(QueryWrapper<BaseUser> query);

	BaseUser selectByPhone(String phone);

	void delete(String id);
	

}
